-- GENERATED SPELL FOR [Death's Head Seer] --


function spell0_4519(pUnit, Event) --@Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(4971,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_4519', 1, 1)
end

function spell1_4519(pUnit, Event) --@Lava Spout Totem,Self--
pUnit:FullCastSpellOnTarget(8264,pUnit)
pUnit:RegisterEvent('Sorts_4519', 20315, 1)
end

function Sorts_4519(pUnit, Event)
local choix_sorts_4519 = math.random(0, 1)
if choix_sorts_4519 == 0 then
pUnit:RegisterEvent('spell0_4519', 1, 1)
end
if choix_sorts_4519 == 1 then
pUnit:RegisterEvent('spell1_4519', 1, 1)
end
end

function mob4519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4519', math.random(1500, 3000), 1)
end

function mob4519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4519, 1, 'mob4519_Action')
RegisterUnitEvent(4519, 2, 'mob4519_Leave')
RegisterUnitEvent(4519, 3, 'mob4519_Kill')
RegisterUnitEvent(4519, 4, 'mob4519_Die')
